<%--
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the StikiWeb Wiki 
 *
 * The Initial Developer of the Original Code is Lee Haslup (biglee@haslups.com).
 * Portions created by the Initial Developer are Copyright (C) 2004
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** */
 * $Id: confirmDelete.jsp,v 1.2 2006/07/19 21:08:31 biglee Exp $
--%> 
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<html>
  <head>
  	<link rel='icon' href='images/logo1.png' type='image/png' />
  	<link rel='shortcut icon' href='images/logo1.png' type='image/png' />
    <title>
      StikiWeb -- Confirm Delete
    </title>
  </head>
<body>
	<table width='100%' height='100%' bgcolor="lightblue">
		<tr height='1%' valign='top'>
			<td width='10%'>
				<img src="images/logomed.png" alt="STIKIWEB"/>
			</td>
			<td width='90%'>
				<h1>StikiWeb<span style='color:red'>Confirm DELETE</span></h1>
			</td>
		</tr>
		<tr>
			<td width='10%'>
				&nbsp;
			</td>
			<td width='80%' valign='top'>
			   <nested:form action="/deletePage.do" focus="cancel">
				   <nested:hidden property='name'/>
				   <nested:hidden property='targetIsAttachment'/>
				   <table width='100%' border="0" bgcolor='white'>
					   <tr>
						  <td valign='top'>
						      You have requested the deletion of the following item:
						      <p />
						      <div style="font-size:larger"><nested:write property="name" /></div>
						      <p />
						      <nested:notEmpty property="isBlocked">
						          <div style="color:red; font-weight:bold">This Page Cannot Be Deleted</div>
						          <p />
						          Pages that have child pages and/or attachments cannot be deleted.
						          Before this page can be deleted the following items must be 
						          deleted first:
						          <p />
						          <div style="font-size:larger"><nested:write property="blockerList"/></div>
						          <p />
								  <nested:submit property="cancel">
									  return.
								  </nested:submit>
						      </nested:notEmpty>
							  <nested:empty property="isBlocked">
							      Are you sure you want to delete this item?
							      <p />&nbsp;&nbsp;
								  <nested:submit property="cancel">
									  No, Do not delete.
								  </nested:submit>
							      <p />&nbsp;&nbsp;
								  <nested:submit property="confirm">
									  Yes, Delete it now.
								  </nested:submit>
							  </nested:empty>
						  </td>
					  </tr>
				  </table>
			  </nested:form>
			</td>
			<td width='10%'>
			    &nbsp;
			</td>
		</tr>
	</table>
</body>
</html>